const _ = require('lodash');
const pkg = require('./package.json');
const cfg = require('./src/etc');

const src = {
    dir: 'src',
    app: {
        dir: 'app',
        main: 'index.js'
    },
    bin: {
        dir: 'bin'
    },
    etc: {
        dir: 'etc'
    },
    res: {
        dir: 'res'
    }
};

const run = {
    dir: 'run',
    web: {
        dir: 'www'
    }
};

const dev = {
    dir: 'dev'
};

const test = {
    dir: 'test'
};

const tmp = {
    dir: 'tmp'
};


const api = {
    path: '/api',
    port: cfg.port
};

module.exports = {
    port: 9000,
    args: ['-c'],
    name: pkg.name,
    main: pkg.main,
    api,
    src,
    dev,
    run,
    tmp
};
